package com.leo.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.leo.blog.entity.BlackIp;

public interface BlackIpDao {
	
	int insertBlackIp(BlackIp blackIp);
    int insertSelective(BlackIp blackIp);
	
	BlackIp queryBlackIpById(int blackId);
    BlackIp queryBlackIpByIp(String blackIp);
	
	int updateBlackIpById(BlackIp blackIp);
    int updateBlackIpByIpSelective(BlackIp blackIp);

    int deleteBlackIpByVid(int  blackVid);
    
    /**
     * 模糊查询
     * @param 
     * @return
     */
    List<BlackIp> queryBlackIpListByPage(@Param("blackIpCondition") BlackIp blackIpCondition, @Param("rowIndex") int rowIndex,
    		@Param("pageSize") int pageSize );
    int queryBlackIpListCount(@Param("blackIpCondition") BlackIp blackIpCondition);
    
    Long queryAllBlackIpCount();
}
